#pragma once
#include "iodialogbase.h"


struct SignalIOData
{
	char	name_[16];
	int		type_;

	UINT16	aRelayAddr_[8];

	UINT16	addr_;
	UINT16	btnID_;
	UINT16	byteFlag_;
	UINT16	bitFlag_;

	SignalIOData(CString name, int type, int addr);
	void setAddr(int addr);
	void syncWithItem(MyList& ioList, int nRow, bool bSave);
};


class SignalIODialog :
	public IODialogBase
{
public:
	SignalIODialog(void);
	~SignalIODialog(void);

	virtual BOOL OnInitDialog();
	virtual afx_msg void OnBnClickedAppend();
	virtual afx_msg void OnBnClickedInsert();
	void insertSignal(int pos);

	static CString	strSignalType__[14];
	static bool		bEnableEdit__[14][8];
};



